-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added two new methods to return Date and Time as a struct and get formatted Date Time string with a given format #94
base: master
Are you sure you want to change the base?
Conversation
…matted Date Time string with a given format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the new function names to keywords.txt, using a true tab as a separator between the keyword and the identifier:
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#keywordstxt-format
Added new two methods to the keywords.txt |
This comment was marked as duplicate.
This comment was marked as duplicate.
Hello, in NTPClient.cpp that may be useful |
I think this is something more of a utility functions which NTPClient not directly involving. Passing epochtime from outside and getting it formatted is not part of a job in NTPClient. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice if we could have this in.
'class NTPClient' has no member named 'getFormattedDate'; did you mean 'getFormattedTime'?
getFormattedDateTime method will return the formatted date, time or datetime string according to the given format. Ex: |
Added bellow two methods to return Date and Time information together as a struct and formatted datetime string with a given format.
getDateTime
getFormattedDateTime
Additional context
Additional requests